	Date.prototype.Format = function (fmt) { //author: meizz 
	    var o = {
	        "M+": this.getMonth() + 1, //月份 
	        "d+": this.getDate(), //日 
	        "h+": this.getHours(), //小时 
	        "m+": this.getMinutes(), //分 
	        "s+": this.getSeconds(), //秒 
	        "q+": Math.floor((this.getMonth() + 3) / 3), //季度 
	        "S": this.getMilliseconds() //毫秒 
	    };
	    if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
	    for (var k in o)
	    if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
	    return fmt;
	}
	var now = new Date();
	
//	alert("执行了没有啊1");
	
	// -------------------------------------------- //
	// ---------------- Term Apply ---------------- //
	// -------------------------------------------- //
	if(jQuery("#applyDateStart") == null || undefined || jQuery("#applyDateStart").val() == ""){
		var startdate = now.Format("yyyy-MM-dd");
		var enddate = new Date(now.getTime() + 3600 * 24 * 30 * 1000).Format("yyyy-MM-dd");
		jQuery("#applyDateStart").val(startdate);
		jQuery("#applyDateEnd").val(enddate);
	} else {
		var startdate = jQuery("#applyDateStart").val();
		var enddate = jQuery("#applyDateEnd").val();
	}   	
	var applyDate = new pickerDateRange('apply_date', {
		isTodayValid : true,
		startDate : startdate,
		endDate : enddate,
		needCompare : false,
		defaultText : ' 至 ',
		autoSubmit : true,
		inputTrigger : 'input_apply',
		theme : 'ta',
		success : function(obj) {
			jQuery("#applyDateStart").val(obj.startDate);
			jQuery("#applyDateEnd").val(obj.endDate);
		}
	});		
	
	
	// -------------------------------------------- //
	// ---------------- Term Apply ---------------- //
	// -------------------------------------------- //
	if(jQuery("#studyDateStart") == null || undefined || jQuery("#studyDateStart").val() == ""){
		var startdate = now.Format("yyyy-MM-dd");
		var enddate = new Date(now.getTime() + 3600 * 24 * 30 * 1000).Format("yyyy-MM-dd");
		jQuery("#studyDateStart").val(startdate);
		jQuery("#studyDateEnd").val(enddate);
	} else {
		var startdate = jQuery("#studyDateStart").val();
		var enddate = jQuery("#studyDateEnd").val();
	}   	
	var applyDate = new pickerDateRange('study_date', {
		isTodayValid : true,
		startDate : startdate,
		endDate : enddate,
		needCompare : false,
		defaultText : ' 至 ',
		autoSubmit : true,
		inputTrigger : 'input_study',
		theme : 'ta',
		success : function(obj) {
			jQuery("#studyDateStart").val(obj.startDate);
			jQuery("#studyDateEnd").val(obj.endDate);
		}
	});		
	
	
	// ------------------------------------------- //
	// ---------------- Term Exam ---------------- //
	// ------------------------------------------- //
	if(jQuery("#examDateStart") == null || undefined || jQuery("#examDateStart").val() == ""){
		var startdate = now.Format("yyyy-MM-dd");
		var enddate = new Date(now.getTime() + 3600 * 24 * 30 * 1000).Format("yyyy-MM-dd");
		jQuery("#examDateStart").val(startdate);
		jQuery("#examDateEnd").val(enddate);
	} else {
		var startdate = jQuery("#examDateStart").val();
		var enddate = jQuery("#examDateEnd").val();
	}   	
	var applyDate = new pickerDateRange('exam_date', {
		isTodayValid : true,
		startDate : startdate,
		endDate : enddate,
		needCompare : false,
		defaultText : ' 至 ',
		autoSubmit : true,
		inputTrigger : 'input_exam',
		theme : 'ta',
		success : function(obj) {
			jQuery("#examDateStart").val(obj.startDate);
			jQuery("#examDateEnd").val(obj.endDate);
		}
	});		
	
	

	
	
	if(jQuery("#invDateS") == null || undefined || jQuery("#invDateS").val() == ""){
		var startdate = "";
		var enddate = "";
	} else {
		var startdate = jQuery("#invDateS").val();
		var enddate = jQuery("#invDateE").val();
	}   	
	var compDate = new pickerDateRange('invord_inv', {
		isTodayValid : true,
		startDate : startdate,
		endDate : enddate,
		needCompare : false,
		defaultText : ' 至 ',
		autoSubmit : true,
		inputTrigger : 'input_invord_inv',
		theme : 'ta',
		success : function(obj) {
			jQuery("#invDateS").val(obj.startDate);
			jQuery("#invDateE").val(obj.endDate);
		}
	});	
	

	
	
	
	
	
	